package com.bytz.modules.cms.echop.controller;

import com.bytz.common.api.vo.Result;
import com.bytz.modules.cms.order.service.IAdminOrderService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/callback")
public class EChopCallBackController {

    @Autowired
    private IAdminOrderService orderService;

    @ApiOperation("e-chop回调，标记订单合同为莱宝已盖章")
    @RequestMapping(value = "/signComplete")
    public Result<Boolean> callBack(@RequestParam String bizId,
                                    @RequestParam String documentId,
                                    @RequestParam String status) {
        return Result.ok(orderService.setEChopSignComplete(bizId, documentId, status));
    }


}
